package demo;

public class OoDemo02 {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.name = "学生1";
        Student stu2 = stu1;
        stu2.name = "学生2";
        System.out.println(stu1.name+"..."+stu2.name);
    }
}

class Student{

    String name;

    int age;

    public void study(){

        System.out.println("好好学习");

    }

}
